package com.me.dogdog.controller


import com.me.dogdog.entity.SysUser
import com.me.dogdog.service.ISysUserService
import io.swagger.v3.oas.annotations.tags.Tag
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Marblog
 * @since 2021-12-08
 */
@Tag(name = "SysUserController", description = "用户模块")
@RestController
@RequestMapping("/sys-user")
class SysUserController {

    @Autowired
    lateinit var sysUserService: ISysUserService

    @GetMapping("/user")
    fun getUser(): List<SysUser>? {
        return sysUserService.list()
    }
}